
#####################################################################
## QDuckdbDriverPlugin Plugin:
#####################################################################

qt_internal_add_plugin(QDuckdbDriverPlugin
    OUTPUT_NAME qsqlduckdb
    PLUGIN_TYPE sqldrivers
    SOURCES
        main.cpp
        qsql_duckdb.cpp 
        qsql_duckdb_p.cpp
        qsql_duckdb.h
        qsql_duckdb_p.h
    DEFINES
        QT_NO_CAST_FROM_ASCII
        QT_NO_CAST_TO_ASCII
    LIBRARIES
        Duckdb::Duckdb
        Qt::Core
        Qt::CorePrivate
        Qt::SqlPrivate
)


if(QT_FEATURE_sql_duckdb)
    qt_internal_force_macos_intel_arch(QDuckdbDriverPlugin)
endif()


